//
//  Zone.m
//  省市区-tableView
//
//  Created by mafeng on 16/7/26.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "Zone.h"

@implementation Zone
- (instancetype)initWithName:(NSString *)name number:(NSString *)number {
    self = [super init];
    if (self) {
        _name = name;
        _number = number;
    }
    return self;
}
+ (instancetype)zoneWithName:(NSString *)name number:(NSString *)number {
    Zone *zone = [[Zone alloc] initWithName:name number:number];
    return zone;
}
//+ (instancetype)zoneWithTempCity:(TempCity *)tempCity {
//    Zone *zone = [Zone zoneWithName:tempCity.name number:tempCity.number];
//    return zone;
//}
- (NSString *)description
{
    return [NSString stringWithFormat:@"%@---%@", _name, _number];
}
@end
